<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'base.item.class.php');

class FormValueBase extends BaseItemBase {
	
	//constructor
	function FormValueBase() {
		parent::BaseItemBase();
		
		$this->table = 'pp_forms_values';
		$this->prefix = 'values_';
		
		$this->filter_fields = array('fid:=');
		$this->filter_map = array('fid' => 'fid:=');
	}
	
	//methods
	function onAddItemFilterBind($data_array) {
		$fb = array();
		$fb['_ip_address'] = util_get_ip_address();
		$fb['_request_url'] = SYS_RT_REQUEST_URI;
		$fb['_referer_url'] = $_SERVER['HTTP_REFERER'];
		$fb['_session'] = $this->_get_session_id();
		
		return $fb;
	}
}
//
?>